import request from '@/utils/request'

// 查询物料退库列表
export function listMaterialreturn(query) {
  return request({
    url: '/mes/materialreturn/list',
    method: 'get',
    params: query
  })
}

// 查询物料退库详细
export function getMaterialreturn(id) {
  return request({
    url: '/mes/materialreturn/' + id,
    method: 'get'
  })
}

// 新增物料退库
export function addMaterialreturn(data) {
  return request({
    url: '/mes/materialreturn',
    method: 'post',
    data: data
  })
}

// 修改物料退库
export function updateMaterialreturn(data) {
  return request({
    url: '/mes/materialreturn',
    method: 'put',
    data: data
  })
}

// 删除物料退库
export function delMaterialreturn(id) {
  return request({
    url: '/mes/materialreturn/' + id,
    method: 'delete'
  })
  
}
// 查询物料退库明细列表
export function detailMaterialreturn(query) {
    return request({
      url: "/mes/materialreturn/detail",
      method: "get",
      params: query,
    });
  }
  
